package top.moxingwang.auth;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created on 2021/3/19.
 *
 * @author moxingwang
 */
@RestController
@RequestMapping("index")
@Scope(value = "request")
public class IndexController {
    @Autowired
    private TestServiceA testServiceA;
    @Autowired
    private TestServiceB testServiceB;

    @GetMapping("/a")
    public String getaS() {
        return testServiceA.getStr();
    }

    @GetMapping("/b")
    public String getbS() {
        return testServiceB.getStr();
    }
}
